import { createRouter,createWebHashHistory } from "vue-router";
import Login from "../views/Login.vue";
const routes=[{path:"/",redirect:"/Login"},  //如果你访问的是根目录,就重定向到Login
{path:"/Login",name:"Login",component:Login}  //如果你访问的是/Login,就展示Login组件
];

const router = createRouter({history:createWebHashHistory(),routes:routes});
export default router;